﻿using System;
using System.Collections.Generic;
using RentalSystem.Data.EF.Core;

namespace RentalSystem.Data.EF.Dao
{
    class EFCustomerCardsDao : ICustomerCardsDao
    {
        #region Queries

        private static readonly string GetQuery;

        #endregion

        private EFManager<CustomerCards> manager;

        public EFCustomerCardsDao(RentalDatabaseEntities repository)
        {
            this.manager = new EFManager<CustomerCards>(repository);
        }

        #region IDao1Key

        public CustomerCards Add(CustomerCards entity)
        {
            manager.Database.AddToCustomerCards(entity);
            manager.Save();
            return entity;
        }

        public CustomerCards Get(string id)
        {
            throw new NotImplementedException();
        }

        public void Delete(string id)
        {
            throw new NotImplementedException();
        }

        public void Delete(CustomerCards entity)
        {
            throw new NotImplementedException();
        }

        public void Update(CustomerCards entity, uint fields)
        {
            throw new NotImplementedException();
        }

        public List<CustomerCards> List()
        {
            throw new NotImplementedException();
        }
        
        #endregion
    }
}
